package string;

public class StartswithDemo {
    public static void main(String[] args) {
      String as="this.loveyou.cn";
      boolean starts= as.startsWith("this");
        System.out.println("starts:"+starts);
        boolean ends=as.endsWith("cn");
        System.out.println("ends"+ends);
    }
}
